//
//  UIView+SetBorder.m
//  test
//
//  Created by renwenchao on 15/1/12.
//  Copyright (c) 2015年 renwenchao. All rights reserved.
//

#import "UIView+SetBorder.h"

@implementation UIView(SetBorder)

- (void)setBorder:(CGColorRef) color
{
    self.layer.borderWidth = 1;
    self.layer.borderColor = [UIColor grayColor].CGColor;
    if (color) {
        self.layer.borderColor = color;
    }
    
}

@end
